package org.luxor.system.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 修改登陆密码请求
 *
 * @author Mark @date 2020-07-26 14:21:10
 */
@Data
@ApiModel(description = "修改登陆密码请求")
public class SysChangPasswordDto {

    @ApiModelProperty(value = "登陆账号")
    @NotBlank(message = "登陆账号，不能为空")
    private String username;

    @ApiModelProperty(value = "旧密码")
    @NotBlank(message = "旧密码，不能为空")
    private String oldPassword;

    @ApiModelProperty(value = "新登陆密码")
    @NotBlank(message = "新登陆密码，不能为空")
    private String newPassword;
}
